<div id="logo">
    <a href="<?=base_url();?>"><img src="<?=base_url();?>assets/img/glava1.gif" /></a>
</div>
<?
    if($this->session->userdata('logged_in')){
    ?>

    <div id="userinfo">
        <div id="logout">
            <a href="<?=base_url();?>login/logout">Odjavi se</a>
        </div>
        <div id="name">
            <?=$this->session->userdata('firstname').' '.$this->session->userdata('lastname');?>
        </div>
        <div id="email">
            <?=$this->session->userdata('email');?>
        </div>
    </div>
    <div id="nav" class="clearfix">
        <a href="<?=base_url()?>article/article/new_form" id="createart">Kreiraj članak</a>
    </div>

    <?    
    }
?>
